//
//  WD_HomeDetailDownLoadCell.m
//  BUDING
//
//  Created by HanWoonYong on 16/4/6.
//  Copyright © 2016年 HanWoonYong. All rights reserved.
//

#import "WD_HomeDetailDownLoadCell.h"

@implementation WD_HomeDetailDownLoadCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.downLoadBut = [[UIButton alloc] init];
        [self.downLoadBut setImage:[UIImage imageNamed:@"Image-9"] forState:UIControlStateNormal];
        [self.downLoadBut addTarget:self action:@selector(downLoadAction:) forControlEvents:UIControlEventTouchUpInside];
        [self.contentView addSubview:self.downLoadBut];
    }
    return self;
}

- (void)layoutSubviews {
    [super layoutSubviews];
    self.downLoadBut.frame = CGRectMake(40, 10, 60, 60);
}

- (void)downLoadAction:(UIButton *)sender {
    self.downLoadBlock();
}

/*
 // Only override drawRect: if you perform custom drawing.
 // An empty implementation adversely affects performance during animation.
 - (void)drawRect:(CGRect)rect {
 // Drawing code
 }
 */

@end
